package com.dfbz.demo01;

import java.util.Scanner;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo03_nextLine {
    public static void main(String[] args) {

        Scanner scanner=new Scanner(System.in);

        System.out.println("请输入一个字符串: ");
        String str = scanner.nextLine();
        System.out.println("您输入的值为: "+str);


        System.out.println("请输入第二个字符串: ");
        String str2 = scanner.nextLine();
        System.out.println("第二个字符串的值为: "+str2);

    }
}
